package com.yzh.math;

import java.util.Random;

/**
 * @author 于振晗
 * @title: TestRandom
 * @description: TODO 随机
 * @date 2020年09月01日
 * @path com.yzh.math
 */
public class TestRandom {
    public static void main(String[] args) {
//        Random random = new Random();
//        Random random = new Random();
        Random random = new Random(10);
        for (int i = 0; i < 10; i++) {
            System.out.println(random.nextInt(20));
        }
    }
}
